package com.bzframework.pro.utils;

import cn.hutool.crypto.digest.DigestUtil;

/**
 * @Author bingzhong
 * @Date 2025/3/24 17:57
 * @Description
 */
public class SignUtils {

    /**
     * 生成密钥
     * @param appId
     * @param timestamp
     * @param body
     * @param appKey
     * @return
     */
    public static String genSign(String appId, long timestamp, String body, String appKey) {
        String signStr = appId + timestamp + body + appKey;
        return DigestUtil.sha256Hex(signStr);
    }


}
